package com.jetgege.resumepoint;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

/**
 * Created by JJT-ssd on 2017/4/20.
 */

public class DownLoadObserver implements Observer<DownloadInfo> {

    protected Disposable d;//可以用于取消注册的监听者
    protected  DownloadInfo downloadInfo;


    @Override
    public void onSubscribe(Disposable d) {
        this.d = d;
    }

    @Override
    public void onNext(DownloadInfo value) {
        this.downloadInfo = value;
    }

    @Override
    public void onError(Throwable e) {
        e.printStackTrace();
    }

    @Override
    public void onComplete() {

    }

}
